#ifndef __ENV_H__
#define __ENV_H__

typedef enum
{
    E_SUPPLY_READY,
    E_SUPPLY_NOT_READY,
} EnvIsSupplyReady;
typedef enum
{
    E_CHARGE_MODE_PD = 0,
    E_CHARGE_MODE_QC = 1,
    E_CHARGE_MODE_NONE = 2,
} EnvChargerMode;
typedef enum
{
    E_NO_ERR,   // 0
    E_WARNING,  // warning,can be ignore
    E_CRITICAL, // critical,can not continue
} EnvErrLeveEnum;
typedef struct
{
    float sourceCapVoltage; // when first boot this information will be contain
    float sourceCapCurrent;
    EnvChargerMode chargerMode;
    EnvErrLeveEnum error;
    EnvIsSupplyReady ready;
    char message[32];// warning message
} Env;

extern Env env;
#endif
